﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MagDev.Foundation;

namespace EnumCustomAttributes
{
    class FeatureReceiver
    {
        //public override void FeatureActivated(SPFeatureReceiverProperties properties)
        //{
        //    SPSite site = (properties.Feature.Parent.GetType() == typeof(SPSite)) ? (SPSite)properties.Feature.Parent : (SPSite)((SPWeb)properties.Feature.Parent).Site;
        //    SPWeb web = site.OpenWeb();

        //    // populate with core items         
        //    AppConfig.Helper acHelper = new AppConfig.Helper();            
        //    acHelper.AppConfigEntries(new Program1AppConfig(), web);            
        //}


        //public override void FeatureDeactivating(SPFeatureReceiverProperties properties)
        //{
        //    SPSite site = (properties.Feature.Parent.GetType() == typeof(SPSite)) ? (SPSite)properties.Feature.Parent : (SPSite)((SPWeb)properties.Feature.Parent).Site;
        //    SPWeb web = site.OpenWeb();

            
        //    // populate with core items         
        //    AppConfig.Helper eHelper = new AppConfig.Helper();            
        //    eHelper.AppConfigEntries(new Program1AppConfig(), web, false);

        //}
    }
}
